package chy.service.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import chy.dao.EmployeeDao;
import chy.entity.Employee;
import chy.service.EmployeeService;
@Service
public class EmployeeServiceImpl implements EmployeeService {
	@Resource
	private EmployeeDao employeeDao;

	@Override
	public Employee getEmloyee(String name, String password) {
		Employee employee=employeeDao.getEmloyee(name);
		if(employee.getPassword().equals(password)) {
			return employee;
		}
		return null;
	}

}
